<template>
  <!-- <el-row>
    <el-col :span="6">
      <side-bar></side-bar>
    </el-col>
    <el-col :span="18">
      <router-view/>
    </el-col>
  </el-row> -->
  <el-scrollbar class="page-component__scroll" ref="componentScrollBar">
    <div class="page-container page-component">
      <el-scrollbar class="page-component__nav">
        <side-bar></side-bar>
      </el-scrollbar>
      <div class="page-component__content">
        <router-view class="content"></router-view>
      </div>
      <!-- <el-backtop v-if="showBackToTop" target=".page-component__scroll .el-scrollbar__wrap" :right="100" :bottom="150"></el-backtop> -->
    </div>
  </el-scrollbar>
</template>
<script>
import sideBar from '@/layout/sidebar/sidebar.vue'
export default {
  components: {
    sideBar
  }
}
</script>
<style lang="scss">
body, html {
  height: 100%;
  margin: 0;
}
#app {
  height: 100%;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.el-scrollbar__view {
  height: 100%;
}
.page-container {
  display: inline-block;
  width: 100%;
  height: 100%;
  > div{
    float: left;
    // overflow: hidden;
  }
  .page-component__nav {
    width: 16%;
  }
  .page-component__content {
    width: 84%;
    // text-align: left;
  }
}
.content {
  padding: 50px;
  text-align: left;
}
</style>
